%% set the parameter
uNumber = 943;  %users' number
iNumber = 1682; %items' number
uDataURL = 'dataset/ml-100k/ua.base';   %origin file
FileURL = 'dataLSHset/ml-100k/ua.csv';  %ratamatrix file

%% read the origin rate file
[ RateMatrix ] = BuildRateMatrix( uDataURL,uNumber,iNumber );
save('./dataLSHset/ml-100k/RateMatrix.mat','RateMatrix');
disp('End the read origin rate file');

%% print the rate matrix to the file
WriteRateMatrix( RateMatrix ,FileURL,uNumber,iNumber);
disp('End the write ratematrix file');